id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

Misc LambdasStringLambda2

prev  |  next  |  chance

fun String.combine2(): String = chunked(1).mapIndexed { i, s -> i.toString() + s }.joinToString(", ")

Function Call  Return Value
"g".combine2()
"house".combine2()

Experiment with this code on Gitpod.io or as a Kotlin Playground

⬅ Back